#pragma once
#include "TCharSupport.h"
#include "EpilOperator.h"
#include "EpilObject.h"


class EpilObjectHelper
{
public:
	static tstring						ToString( bool value );
	static tstring						ToString( int value );
	static tstring						ToString( double value );

	static bool							IsDoubleEquals( double lhs, double rhs );
	static bool							IsDoubleLessThanOrEquals( double lhs, double rhs );
	static bool							IsDoubleGreaterThanOrEquals( double lhs, double rhs );
	static bool							IsInteger( double value );
	static double						GetDoubleMod( double lhs, double rhs );

	static bool							IsArithmeticOperator( EpilBinaryOperator op );
	static bool							IsLogicOperator( EpilBinaryOperator op );
	static bool							IsComparisonOperator( EpilBinaryOperator op );

	static bool							IsConditionTrue( const EpilObject * obj );
};
